<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>iStip - The International Student Information Platform - {$title|default:'Home'}</title>
    <link rel="shortcut icon" type="image/x-icon" href="{$statics_url}/images/icons/favicon.ico">
    <link href="<?=base_url()?>static/css/istip.css" rel="stylesheet" type="text/css" />
    <link href="<?=base_url()?>static/css/smoothness/jquery-ui-1.8.12.custom.css" rel="stylesheet" type="text/css" />
    <? if(isset($styles)) { foreach($styles as $style) { echo '<link href="'.base_url().'static/css/'.$style.'.css" rel="stylesheet" type="text/css" />'; } } ?>
    <link href='http://fonts.googleapis.com/css?family=IM+Fell+DW+Pica&subset=latin' rel='stylesheet' type='text/css'>
    <link href='http://fonts.googleapis.com/css?family=Droid+Sans&subset=latin' rel='stylesheet' type='text/css'>
    <script type="text/javascript" src="<?=base_url()?>static/js/jquery-1.5.2.min.js"></script>
    <script type="text/javascript" src="<?=base_url()?>static/js/jquery-ui-1.8.12.custom.min.js"></script>
    <? if(isset($scripts)) { foreach($scripts as $script) { echo '<script src="'.base_url().'static/js/'.$script.'.js" type="text/javascript"></script>'; } } ?>
</head>
<body> 
    <div id="wrapper">
        <div id="header">
            <ul id="topNav">
                <li>
                    <a href="#">Sign in <?=base_url()?></a>
                </li>
                <li>
                    <a href="#">Register</a>
                </li>
            </ul>
        </div>
        <div id="globalNavigation">
   
            <ul>
                <li>
                    <a href="<?=base_url()?>index.php/login/destroy" class="floatRight">Logout</a>
                </li>
                <? if($this->session->userdata('userName')) { ?>
                <li>
                    <a href="">Logged in as: <?=$this->session->userdata('userName') ?></a>
                </li>
                <? } ?>
            </ul>
            

        </div>
        <? if($this->session->flashdata('msg')) { ?>
        <div class="messageBox"><?=$this->session->flashdata('msg')?></div>
        <? } ?>
        
